package com.cutePet.pet.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.cutePet.pet.dao.SearchDao;
import com.cutePet.pet.domain.SearchDO;
import com.cutePet.pet.service.SearchService;



@Service
public class SearchServiceImpl implements SearchService {
	@Autowired
	private SearchDao searchDao;
	
	@Override
	public SearchDO get(Long searchId){
		return searchDao.get(searchId);
	}
	
	@Override
	public List<SearchDO> list(Map<String, Object> map){
		return searchDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return searchDao.count(map);
	}
	
	@Override
	public int save(SearchDO search){
		return searchDao.save(search);
	}
	
	@Override
	public int update(SearchDO search){
		return searchDao.update(search);
	}
	
	@Override
	public int remove(Long searchId){
		return searchDao.remove(searchId);
	}
	
	@Override
	public int batchRemove(Long[] searchIds){
		return searchDao.batchRemove(searchIds);
	}
	
}
